package com.itheima.b;

public class Circle implements ShapePara {
    public static final double PI=3.14;
    public double radius;

    @Override
    public int getArea(double radius) {
        double perimeter=PI*2*radius;
        return (int) perimeter;
    }

    @Override
    public int getCircumference(double radius) {
        double area=PI*radius*radius;
        return (int) area;
    }

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
}
